package cn.cttic.order.dubbo;

import cn.cttic.order.api.RemoteInstallOrderProcessService;
import cn.cttic.order.mapper.BaseInstallOrderMapper;
import cn.cttic.order.mapper.BaseSaleOrderMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import net.bytebuddy.asm.Advice;
import org.apache.dubbo.config.annotation.DubboService;

import java.time.LocalDateTime;

@DubboService
@Slf4j
@RequiredArgsConstructor
public class RemoteInstallOrderProcessServiceImpl implements RemoteInstallOrderProcessService {

    private final BaseInstallOrderMapper baseInstallOrderMapper;

    private final BaseSaleOrderMapper saleOrderMapper;

    @Override
    public boolean checkDevice(String imei) {
        return true;
    }

    @Override
    public boolean activeDevice(String imei, LocalDateTime activeTime, Advice.Local lastOnlineTime) {

        return true;
    }

}
